
public class TestMain {
    public static void main(String[] args) {
        Solution s = new Solution();
        int[] nums = {2,2,2,3,4,5,7,7,9};

        System.out.println(s.removeDuplicates(nums));

        nums = new int[]{0,1,2,2,3,4,4};

        System.out.println(s.removeDuplicates(nums));

        nums = new int[]{2,2,3,3};

        System.out.println(s.removeDuplicates(nums));
    }
}
